//
//  datasTruffle.h
//  Truffle
//
//  Classe appelée au chargement de l'application qui s'occupe de charger
//  les passerelles et de vérifier la connexion de l'appareil
//
//  Created by Fabrice Troilo on 05/03/10.
//  Copyright 2010 DQS . All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import "Accueil.h"
#import "RestConnectionDelegate.h"

@class RestConnection, DAOTruffle;

@interface DatasTruffle : NSObject <CLLocationManagerDelegate,RestConnectionDelegate> {

	CLLocationManager *locationManager;
	NSString * message;
	Accueil *accueil;
	
	NSString * latitude;
	NSString * longitude;
	
	/***** Début Rest *******/
@private 
	RestConnection *restConnection;
	NSArray *tableData;
	/****** Fin Rest ********/
	
}

@property (nonatomic, readwrite, retain) CLLocationManager *locationManager;
@property (nonatomic, readwrite, retain) UIViewController *accueil;
@property (nonatomic, readwrite, copy) NSString *message, *latitude, *longitude;

+(BOOL)isConnected;
+(NSMutableArray *)getGateways;
+(DAOTruffle *)getDao;
- (void) performRequests;
- (void) connectToGateway;

@end
